# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-xml-xpath
_pkgreal=XML-XPath
pkgver=1.48
pkgrel=1
pkgdesc="Parse and evaluate XPath statements."
url="https://metacpan.org/release/XML-XPath/"
arch="noarch"
license="Artistic-1.0-Perl OR GPL-1.0-or-later"
depends="perl perl-xml-parser"
makedepends="perl-path-tiny"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/M/MA/MANWAR/XML-XPath-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="
c7347dd6e052e0145577ee624da5cef2ee8088ea434351ea2461e0bb3746c114fe571af1bc971333e046feb7dab808c6c84ab385310acbc9e8a9a89025969e48  XML-XPath-1.48.tar.gz
"
